package com.ksvip.next.components.core.constant;

import java.nio.charset.Charset;

/**
 * 类CommonConstant.java的实现描述：通用常量类
 */
public class SystemConstants {
    public static final String GLOBAL                      = "spring.global";
    /** N */
    public static final String IS_DELETED_N                = "N";
    /** Y */
    public static final String IS_DELETED_Y                = "Y";
    /** SYSTEM */
    public static final String SYSTEM                      = "SYSTEM";
    /**
     * 系统用户的主目录
     */
    public static final String LOCAL_PATH                  = System.getProperty("user.home").concat("/");
    public static final String CF                          = "cf";
    /**
     * 未知
     */
    public static final String UN_KNOW                     = "未知";
    public static final String TMP_DIR                     = "/alidata1/admin/tmp/";
    public static final String DEFAULT_CHARSET             = Charset.defaultCharset().name();
    /**
     *
     */
    public static final int    ZERO                        = 0;
    public static final String ZERO_STR                    = "0";
    public static final String ONE_STR                     = "1";

    public static final String STRING_BLANK                = "";
    public static final String SUCCESS_CODE                = "000000";
    public static final String SUCCESS_MSG                 = "成功";

    public static final String FAIL_CODE                   = "400000";
    public static final String FAIL_MSG                    = "失败";
    public static final String NOT_EXSIT_CODE              = "300000";
    public static final String NOT_EXSIT_MSG               = "不存在";
    public static final String AYSNC_CODE                  = "200000";
    public static final String AYSNC_MSG                   = "异步处理中";

    public static final String SYSTEM_ERROR_CODE           = "999999";
    public static final String SYSTEM_ERROR_MSG            = "异常";

    public static final String ILLEGAL_ARGUMENT_CODE       = "900000";
    public static final String ILLEGAL_ARGUMENT_MSG        = "无效参数";

    public static final String PROCESSING_CODE             = "100000";
    public static final String PROCESSING_MSG              = "处理中";
    public static final String REQUEST_FREQUENCY_FAST_CODE = "110000";
    public static final String REQUEST_FREQUENCY_FAST_MSG  = "查询频率太频繁";
    public static final String DELIMITER                   = ":";

    /**
     * 支付信息导出ContentType
     */
    public static final String EXPORT_CONTENTTYPE          = "application/octet-stream; charset=utf-8";

    /**
     * 支付信息导出HeaderKey
     */
    public static final String EXPORT_HEADER_KEY           = "Content-Disposition";
    /**
     * 支付信息导出HeaderValue
     */
    public static final String EXPORT_HEADER_VAL           = "attachment; filename=loanOrderExport.xls";

}
